import request from '@/utils/request'

// 查询图书标签对应列表
export function listTag(query) {
  return request({
    url: '/business/book/tag/list',
    method: 'get',
    params: query
  })
}

// 查询图书标签对应详细
export function getTag(bookId) {
  return request({
    url: '/business/book/tag/' + bookId,
    method: 'get'
  })
}

// 新增图书标签对应
export function addTag(data) {
  return request({
    url: '/business/book/tag/add',
    method: 'post',
    data: data
  })
}

// 修改图书标签对应
export function updateTag(data) {
  return request({
    url: '/business/book/tag/edit',
    method: 'post',
    data: data
  })
}

// 删除图书标签对应
export function delTag(bookId) {
  return request({
    url: '/business/book/tag/del/' + bookId,
    method: 'get'
  })
}
